package ExtraDemo.demo07.MyVolatile;

public class Demo {
    public static void main(String[] args) {
        MyThread1 myThread1=new MyThread1();
        myThread1.setName("女孩");
        MyThread2 myThread2=new MyThread2();
        myThread2.setName("男孩");
        myThread2.start();
        myThread1.start();

    }
}
